package com.itheima.test;

/**
 * @Author:gy
 * @Date: 2025/09/06 9:20
 * @Description:
 */
public class Demo {
    public static void main(String[] args) {
        //获取系统类 
        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        //获取平台类加载器
        ClassLoader classLoader1 = systemClassLoader.getParent();
        //启动类加载器
        ClassLoader classLoader2 = classLoader1.getParent();
        System.out.println("系统类加载器"+systemClassLoader);
        System.out.println("平台类加载器"+classLoader1);
        System.out.println("启动类类加载器"+classLoader2);
    }
}
